3.1.9 \(\int \frac {(a+b x^2) (A+B x^2)}{x^6} \, dx\) [9]

Optimal. Leaf size=31 \[ -\frac {a A}{5 x^5}-\frac {A b+a B}{3 x^3}-\frac {b B}{x} \]

[Out]

-1/5*a*A/x^5+1/3*(-A*b-B*a)/x^3-b*B/x

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {459} \begin {gather*} -\frac {a B+A b}{3 x^3}-\frac {a A}{5 x^5}-\frac {b B}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*x^2)*(A + B*x^2))/x^6,x]

[Out]

-1/5*(a*A)/x^5 - (A*b + a*B)/(3*x^3) - (b*B)/x

Rule 459

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Int[ExpandI
ntegrand[(e*x)^m*(a + b*x^n)^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] &
& IGtQ[p, 0] && IGtQ[q, 0]

Rubi steps

\begin {align*} \int \frac {\left (a+b x^2\right ) \left (A+B x^2\right )}{x^6} \, dx &=\int \left (\frac {a A}{x^6}+\frac {A b+a B}{x^4}+\frac {b B}{x^2}\right ) \, dx\\ &=-\frac {a A}{5 x^5}-\frac {A b+a B}{3 x^3}-\frac {b B}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 33, normalized size = 1.06 \begin {gather*} -\frac {a A}{5 x^5}+\frac {-A b-a B}{3 x^3}-\frac {b B}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x^2)*(A + B*x^2))/x^6,x]

[Out]

-1/5*(a*A)/x^5 + (-(A*b) - a*B)/(3*x^3) - (b*B)/x

________________________________________________________________________________________

Maple [A]
time = 0.02, size = 28, normalized size = 0.90

method result size
default \(-\frac {a A}{5 x^{5}}-\frac {A b +B a}{3 x^{3}}-\frac {b B}{x}\) \(28\)
norman \(\frac {-b B \,x^{4}+\left (-\frac {A b}{3}-\frac {B a}{3}\right ) x^{2}-\frac {A a}{5}}{x^{5}}\) \(30\)
risch \(\frac {-b B \,x^{4}+\left (-\frac {A b}{3}-\frac {B a}{3}\right ) x^{2}-\frac {A a}{5}}{x^{5}}\) \(30\)
gosper \(-\frac {15 b B \,x^{4}+5 A b \,x^{2}+5 B a \,x^{2}+3 A a}{15 x^{5}}\) \(32\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)*(B*x^2+A)/x^6,x,method=_RETURNVERBOSE)

[Out]

-1/5*a*A/x^5-1/3*(A*b+B*a)/x^3-b*B/x

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 29, normalized size = 0.94 \begin {gather*} -\frac {15 \, B b x^{4} + 5 \, {\left (B a + A b\right )} x^{2} + 3 \, A a}{15 \, x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(B*x^2+A)/x^6,x, algorithm="maxima")

[Out]

-1/15*(15*B*b*x^4 + 5*(B*a + A*b)*x^2 + 3*A*a)/x^5

________________________________________________________________________________________

Fricas [A]
time = 1.05, size = 29, normalized size = 0.94 \begin {gather*} -\frac {15 \, B b x^{4} + 5 \, {\left (B a + A b\right )} x^{2} + 3 \, A a}{15 \, x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(B*x^2+A)/x^6,x, algorithm="fricas")

[Out]

-1/15*(15*B*b*x^4 + 5*(B*a + A*b)*x^2 + 3*A*a)/x^5

________________________________________________________________________________________

Sympy [A]
time = 0.17, size = 32, normalized size = 1.03 \begin {gather*} \frac {- 3 A a - 15 B b x^{4} + x^{2} \left (- 5 A b - 5 B a\right )}{15 x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)*(B*x**2+A)/x**6,x)

[Out]

(-3*A*a - 15*B*b*x**4 + x**2*(-5*A*b - 5*B*a))/(15*x**5)

________________________________________________________________________________________

Giac [A]
time = 1.20, size = 31, normalized size = 1.00 \begin {gather*} -\frac {15 \, B b x^{4} + 5 \, B a x^{2} + 5 \, A b x^{2} + 3 \, A a}{15 \, x^{5}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*(B*x^2+A)/x^6,x, algorithm="giac")

[Out]

-1/15*(15*B*b*x^4 + 5*B*a*x^2 + 5*A*b*x^2 + 3*A*a)/x^5

________________________________________________________________________________________

Mupad [B]
time = 0.02, size = 29, normalized size = 0.94 \begin {gather*} -\frac {B\,b\,x^4+\left (\frac {A\,b}{3}+\frac {B\,a}{3}\right )\,x^2+\frac {A\,a}{5}}{x^5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((A + B*x^2)*(a + b*x^2))/x^6,x)

[Out]

-((A*a)/5 + x^2*((A*b)/3 + (B*a)/3) + B*b*x^4)/x^5

________________________________________________________________________________________